import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '第三方流水号',
            dataIndex: 'thirdSerialId',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'roomId',
            width: 200,
        },
        {
            title: '贵宾厅名称',
            dataIndex: 'RoomName',
            width: 200,
        },
        {
            title: '贵宾厅地址',
            dataIndex: 'address',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'businessHours',
            width: 200,
        },
        {
            title: '预约使用人姓名',
            dataIndex: 'contactName',
            width: 200,
        },
        {
            title: '预约使用人联系电话',
            dataIndex: 'contactPhone',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'productUniqueCode',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'buyCount',
            width: 200,
        },
        {
            title: '发车时间',
            dataIndex: 'startTime',
            width: 200,
        },
        {
            title: '身份证号',
            dataIndex: 'cardNo',
            width: 200,
        },
        {
            title: '列车号',
            dataIndex: 'batchNo',
            width: 200,
        },
        {
            title: '行程',
            dataIndex: 'trip',
            width: 200,
        },
        {
            title: '预约状态（1待预约，2预约成功，3预约失败）',
            dataIndex: 'state',
            width: 200,
        },
        {
            title: '贵宾厅订单号',
            dataIndex: 'serialId',
            width: 200,
        },
        {
            title: '验证码',
            dataIndex: 'ticketNo',
            width: 200,
        },
        {
            title: '创建日期',
            dataIndex: 'createDate',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '第三方流水号',
            field: 'thirdSerialId',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'roomId',
            component: 'Input',
            required: true,
        },
        {
            label: '贵宾厅名称',
            field: 'RoomName',
            component: 'Input',
            required: true,
        },
        {
            label: '贵宾厅地址',
            field: 'address',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'businessHours',
            component: 'Input',
            required: true,
        },
        {
            label: '预约使用人姓名',
            field: 'contactName',
            component: 'Input',
            required: true,
        },
        {
            label: '预约使用人联系电话',
            field: 'contactPhone',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'productUniqueCode',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'buyCount',
            component: 'Input',
            required: true,
        },
        {
            label: '发车时间',
            field: 'startTime',
            component: 'Input',
            required: true,
        },
        {
            label: '身份证号',
            field: 'cardNo',
            component: 'Input',
            required: true,
        },
        {
            label: '列车号',
            field: 'batchNo',
            component: 'Input',
            required: true,
        },
        {
            label: '行程',
            field: 'trip',
            component: 'Input',
            required: true,
        },
        {
            label: '预约状态（1待预约，2预约成功，3预约失败）',
            field: 'state',
            component: 'Input',
            required: true,
        },
        {
            label: '贵宾厅订单号',
            field: 'serialId',
            component: 'Input',
            required: true,
        },
        {
            label: '验证码',
            field: 'ticketNo',
            component: 'Input',
            required: true,
        },
        {
            label: '创建日期',
            field: 'createDate',
            component: 'Input',
            required: true,
        },
];
